package quack;

import quack.fly.FlyWithNoWings;

/**
 * Created by Frank on 2017/8/6.
 */
public class TestApp {

    public static void main(String[] args) {

        Duck duck = new MallardDuck();
        duck.performFly();
//        duck.performQuack();

        duck.setFlyBehavior(new FlyWithNoWings());
        duck.performFly();
    }

}
